﻿using Domain.Entitys.Pinv;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.EntityConfigurations.Pinv
{
    public class Pb_podetConfiguration : IEntityTypeConfiguration<Pinv_podet>
    {
        public void Configure(EntityTypeBuilder<Pinv_podet> builder)
        {
            builder.ToTable("pinv_podet");
            builder.HasKey(e => e.Podet_id);
            builder.HasOne(e => e.Min).WithMany(e => e.Details).HasForeignKey(e => e.Podet_id);
        }
    }
}
